package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统通告表
 *
 * @author WeiZiDong
 */
@Table(name = "`sys_announcement`")
@Data
@ApiModel("系统通告表")
public class SysAnnouncement implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "Id", example = "String")
    private String id;
    @Column(name = "`titile`")
    @ApiModelProperty(value = "标题", example = "String")
    private String titile;
    @Column(name = "`msg_content`")
    @ApiModelProperty(value = "内容", example = )
    private  msgContent;
    @Column(name = "`start_time`")
    @ApiModelProperty(value = "开始时间", example = "2019-05-05 17:55:31")
    private Date startTime;
    @Column(name = "`end_time`")
    @ApiModelProperty(value = "结束时间", example = "2019-05-05 17:55:31")
    private Date endTime;
    @Column(name = "`sender`")
    @ApiModelProperty(value = "发布人", example = "String")
    private String sender;
    @Column(name = "`priority`")
    @ApiModelProperty(value = "优先级（L低，M中，H高）", example = "String")
    private String priority;
    @Column(name = "`msg_category`")
    @ApiModelProperty(value = "消息类型1:通知公告2:系统消息", example = "2")
    private String msgCategory;
    @Column(name = "`msg_type`")
    @ApiModelProperty(value = "通告对象类型（USER:指定用户，ALL:全体用户）", example = "String")
    private String msgType;
    @Column(name = "`send_status`")
    @ApiModelProperty(value = "发布状态（0未发布，1已发布，2已撤销）", example = "String")
    private String sendStatus;
    @Column(name = "`send_time`")
    @ApiModelProperty(value = "发布时间", example = "2019-05-05 17:55:31")
    private Date sendTime;
    @Column(name = "`cancel_time`")
    @ApiModelProperty(value = "撤销时间", example = "2019-05-05 17:55:31")
    private Date cancelTime;
    @Column(name = "`del_flag`")
    @ApiModelProperty(value = "删除状态（0，正常，1已删除）", example = "String")
    private String delFlag;
    @Column(name = "`bus_type`")
    @ApiModelProperty(value = "业务类型(email:邮件bpm:流程)", example = "String")
    private String busType;
    @Column(name = "`bus_id`")
    @ApiModelProperty(value = "业务id", example = "String")
    private String busId;
    @Column(name = "`open_type`")
    @ApiModelProperty(value = "打开方式(组件：component路由：url)", example = "String")
    private String openType;
    @Column(name = "`open_page`")
    @ApiModelProperty(value = "组件/路由地址", example = "String")
    private String openPage;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;
    @Column(name = "`user_ids`")
    @ApiModelProperty(value = "指定用户", example = )
    private  userIds;
    @Column(name = "`msg_abstract`")
    @ApiModelProperty(value = "摘要", example = )
    private  msgAbstract;

    private static final long serialVersionUID = 1L;
}
